package com.javaweb.service;

import com.javaweb.model.Article;
import com.javaweb.service.dto.ArticleConditionDto;
import com.javaweb.service.dto.ArticleUpdateDto;
import com.javaweb.service.dto.PageResult;
import org.springframework.transaction.annotation.Transactional;

public interface ArticleService {


    public PageResult queryByArticleCondition(ArticleConditionDto articleCond, Integer pageNum, Integer pageSize);

    public int publishArticle(String articleId, String userId) ;

    public Article queryById(String articleId);

    public Article insertArticle(Article article);

    public int publishArticlesByBatch(String[] articleIds, String userId);

    public int updateArticle(ArticleUpdateDto article );

    public int removeArticle(String articleId, String userId);

}
